@extends('console.common.framework') 
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header">分类管理</h3>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                分类列表
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-hover" id="menu-table">
                        <thead>
                            <tr>
                                <th class="col-lg-1">id</th>
                                <th class="col-lg-2">标题</th>
                                <th class="col-lg-2">vname</th>
                                <th class="col-lg-2">所属项目</th>
                                <th class="col-lg-2">创建时间</th>
                                <th class="col-lg-1">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach($list as $li)
                            <tr>
                                <td>{{$li['id']}}</td>
                                <td>{{$li['title']}}</td>
                                <td>{{$li['vname']}}</td>
                                <td>{{$li['project_title']}}</td>
                                <td>{{$li['create_time']}}</td>
                                <td>
                                    <a class="fa fa-fw fa-plus-square-o fa-action" title="添加接口" href="{{ route('api/add', ['projectid' => $li['project_id'], 'categoryid' => $li['id'] ]) }}"></a>
                                    <a class="fa fa-fw fa-edit fa-action" title="修改" href="{{route('category/view',['id' => $li['id']])}}"></a>
                                    <span class="fa fa-fw fa-trash-o del-span fa-action" title="删除" data-id="{{$li['id']}}"></span>
                                </td>
                            </tr>
                            @endforeach
                            <tr>
                                <td colspan="6" class="page-nav">{{$list->links()}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
</div>
@endsection
